﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Management.Automation;

namespace LMCmdLetLib
{
    [Cmdlet(VerbsCommon.Get, "LabManagerInternal")]
    public class GetLabManagerInternal : Cmdlet
    {
        #region private members
        private string m_apiurl;
        private string m_apiuser;
        private string m_apipass;
        #endregion

        [Parameter(Mandatory = true)]
        public string ApiUrl
        {
            get { return m_apiurl; }
            set { m_apiurl = value; }
        }

        [Parameter(Mandatory = true)]
        public string Username
        {
            get { return m_apiuser; }
            set { m_apiuser = value; }
        }

        [Parameter(Mandatory = true)]
        public string Password
        {
            get { return m_apipass; }
            set { m_apipass = value; }
        }

        protected override void ProcessRecord()
        {
            WriteObject(new LabManagerInternal(this.ApiUrl,this.Username,this.Password));
        }
    }
}
